﻿namespace EasyWeb.Configuration
{
    using System;
    using EasyWeb.Validation;

    [Serializable]
    public class EWDefaultLanguageConfiguration
    {
        private Guid id;
        private string defaultLanguage;
        private bool useBrowserSetting;
        private bool useDefault;
        private byte[] timestamp;

        public Guid Id
        {
            get { return this.id; }
            set { this.id = value; }
        }

        [EWCultureNameValidation]
        public string DefaultLanguage
        {
            get { return this.defaultLanguage; }
            set { this.defaultLanguage = value; }
        }

        public bool UseBrowserSetting
        {
            get { return this.useBrowserSetting; }
            set { this.useBrowserSetting = value; }
        }

        public bool UseDefault
        {
            get { return this.useDefault; }
            set { this.useDefault = value; }
        }

        public byte[] Timestamp
        {
            get { return this.timestamp; }
            set { this.timestamp = value; }
        }
    }
}
